{{#each rules as |rule|}}
  {{form-node-selector
    removeRule=(action "removeRule")
    rule=rule
    editing=editing
  }}
{{else if (not editing)}}
  <div class="text-center text-muted pt-20 pb-20">{{t "formNodeAffinity.noRules"}}</div>
{{/each}}

{{#if editing}}
  <div class="row">
    <button class="btn bg-link icon-btn pull-left" type="button" {{action "addRule"}}>
      <i class="icon icon-plus text-small"></i>
      <span>{{t "formNodeAffinity.addRuleLabel"}}</span>
    </button>
  </div>
{{/if}}